/***************************************************************************
* COPYRIGHT NOTICE
* Copyright 2019 Horizon Robotics, Inc.
* All rights reserved.
***************************************************************************/
#ifndef UTILITY_SENSOR_INC_GC4C33_SETTING_H_
#define UTILITY_SENSOR_INC_GC4C33_SETTING_H_

#define GC4C33_PARAM_HOLD     (0x031d)
#define GC4C33_LINE      		(0x0202)
#define GC4C33_GAIN         	(0x020e)
#if 0
#define GC4C33_VTS	        (0x0340)
#define GC4C33_HTS	        (0x0342)
#define GC4C33_X_START        (0x0344)
#define GC4C33_Y_START        (0x0346)
#define GC4C33_X_END          (0x0348)
#define GC4C33_Y_END          (0x034A)
#endif

static uint8_t regValTable[43][9] = {
	/*0x2fd 0x2fc 0x263 0x267 0x2b3 0x2b4 0x2b8 0x2b9 0x515*/
	{0x00, 0x3b, 0x00, 0x3b, 0x00, 0x00, 0x01, 0x00, 0x20}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x08, 0x00, 0x01, 0x0B, 0x20}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x01, 0x00, 0x01, 0x1B, 0x1e}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x09, 0x00, 0x01, 0x2A, 0x1c}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x10, 0x00, 0x01, 0x3E, 0x1a}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x18, 0x00, 0x02, 0x13, 0x18}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x11, 0x00, 0x02, 0x33, 0x18}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x19, 0x00, 0x03, 0x11, 0x16}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x30, 0x00, 0x03, 0x3B, 0x16}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x38, 0x00, 0x04, 0x26, 0x14}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x31, 0x00, 0x05, 0x24, 0x14}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x39, 0x00, 0x06, 0x21, 0x12}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x32, 0x00, 0x07, 0x28, 0x12}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x3a, 0x00, 0x08, 0x3C, 0x12}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x33, 0x00, 0x0A, 0x3F, 0x10}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x3b, 0x00, 0x0C, 0x38, 0x10}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x34, 0x00, 0x0F, 0x17, 0x0e}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x3c, 0x00, 0x11, 0x3F, 0x0c}, 
	{0x00, 0x3b, 0x00, 0x3b, 0xb4, 0x00, 0x15, 0x34, 0x0a}, 
	{0x00, 0x3b, 0x00, 0x3b, 0xbc, 0x00, 0x19, 0x22, 0x08}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x34, 0x01, 0x1E, 0x09, 0x06}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x3c, 0x01, 0x1A, 0x31, 0x04}, 
	{0x00, 0x3b, 0x00, 0x3b, 0xb4, 0x01, 0x20, 0x12, 0x02}, 
	{0x00, 0x3b, 0x00, 0x3b, 0xbc, 0x01, 0x25, 0x28, 0x02}, 
	{0x00, 0x3b, 0x00, 0x3b, 0x34, 0x02, 0x2D, 0x28, 0x02}, 

	{0x00, 0x3b, 0x00, 0x3b, 0x34, 0x12, 0x35, 0x0A, 0x10}, 
	{0x00, 0x34, 0x00, 0x34, 0x34, 0x12, 0x3F, 0x22, 0x0e}, 
	{0x00, 0x3c, 0x00, 0x3c, 0x34, 0x12, 0x4A, 0x02, 0x0c}, 
	{0x00, 0xb4, 0x00, 0xb4, 0x34, 0x12, 0x5A, 0x36, 0x0a}, 
	{0x00, 0xbc, 0x00, 0xbc, 0x34, 0x12, 0x69, 0x37, 0x0a}, 
	{0x01, 0x34, 0x10, 0x34, 0x34, 0x12, 0x7E, 0x13, 0x08}, 
	{0x01, 0x3c, 0x10, 0x3c, 0x34, 0x12, 0x93, 0x0B, 0x06}, 
	{0x01, 0xb4, 0x10, 0xb4, 0x34, 0x12, 0xB4, 0x19, 0x04}, 
	{0x01, 0xbc, 0x10, 0xbc, 0x34, 0x12, 0xD2, 0x0E, 0x02}, 
	{0x02, 0x34, 0x20, 0x34, 0x34, 0x12, 0xFC, 0x0B, 0x02}, 
	{0x02, 0x3c, 0x20, 0x3c, 0x34, 0x12, 0xff, 0xff, 0x02}, 
	{0x01, 0xf4, 0x10, 0xf4, 0x34, 0x12, 0xff, 0xff, 0x02}, 
	{0x01, 0xfc, 0x10, 0xfc, 0x34, 0x12, 0xff, 0xff, 0x02}, 
	{0x02, 0x74, 0x20, 0x74, 0x34, 0x12, 0xff, 0xff, 0x02}, 
	{0x02, 0x7c, 0x20, 0x7c, 0x34, 0x12, 0xff, 0xff, 0x02}, 
	{0x02, 0x75, 0x20, 0x75, 0x34, 0x12, 0xff, 0xff, 0x02}, 
	{0x02, 0x7d, 0x20, 0x7d, 0x34, 0x12, 0xff, 0xff, 0x02}, 
	{0x02, 0xf5, 0x20, 0xf5, 0x34, 0x12, 0xff, 0xff, 0x02}, 
};

uint32_t gainLevelTable[44] = {
	64,
	75,
	91,
	106,
	126,
	147,
	179,
	209,
	251,
	294,
	356,
	417,
	488,
	572,
	703,
	824,
	983,
	1151,
	1396,
	1634,
	1929,
	2259,
	2736,
	3204,
	3844,
	3402,
	4096,
	4738,
	5814,
	6775,
	8083,
	9419,
	11545,
	13454,
	16139,
	18808,
	22695,
	26447,
	31725,
	36971,
	44784,
	52188,
	62977,
	0xffffffff
};


uint32_t gain_cs[] = {
64,
65,
67,
68,
70,
71,
73,
74,
76,
78,
79,
81,
83,
85,
87,
89,
91,
92,
95,
97,
99,
101,
103,
105,
108,
110,
112,
115,
117,
120,
123,
125,
128,
131,
134,
137,
140,
143,
146,
149,
152,
156,
159,
162,
166,
170,
173,
177,
181,
185,
189,
193,
197,
202,
206,
211,
215,
220,
225,
230,
235,
240,
245,
251,
256,
262,
267,
273,
279,
285,
292,
298,
304,
311,
318,
325,
332,
339,
347,
354,
362,
370,
378,
386,
395,
403,
412,
421,
431,
440,
450,
459,
470,
480,
490,
501,
512,
523,
535,
546,
558,
571,
583,
596,
609,
622,
636,
650,
664,
679,
693,
709,
724,
740,
756,
773,
790,
807,
825,
843,
861,
880,
899,
919,
939,
960,
981,
1002,
1024,
1046,
1069,
1093,
1117,
1141,
1166,
1192,
1218,
1244,
1272,
1300,
1328,
1357,
1387,
1417,
1448,
1480,
1512,
1545,
1579,
1614,
1649,
1685,
1722,
1760,
1798,
1838,
1878,
1919,
1961,
2004,
2048,
2093,
2139,
2186,
2233,
2282,
2332,
2383,
2435,
2489,
2543,
2599,
2656,
2714,
2774,
2834,
2896,
2960,
3025,
3091,
3158,
3228,
3298,
3371,
3444,
3520,
3597,
3676,
3756,
3838,
3922,
4008,
4096,
4186,
4277,
4371,
4467,
4565,
4664,
4767,
4871,
4978,
5087,
5198,
5312,
5428,
5547,
5668,
5793,
5919,
6049,
6182,
6317,
6455,
6597,
6741,
6889,
7039,
7194,
7351,
7512,
7677,
7845,
8016,
8192,
8371,
8555,
8742,
8933,
9129,
9329,
9533,
9742,
9955,
10173,
10396,
10624,
10856,
11094,
11337,
11585,
11839,
12098,
12363,
12634,
12910,
13193,
13482,
13777,
14079,
14387,
14702,
15024,
15353,
15689,
16033,
16384,
16743,
17109,
17484,
17867,
18258,
18658,
19066,
19484,
19911,
20347,
20792,
21247,
21713,
22188,
22674,
23170,
23678,
24196,
24726,
25268,
25821,
26386,
26964,
27554,
28158,
28774,
29405,
30048,
30706,
31379,
32066,
32768,
33486,
34219,
34968,
35734,
36516,
37316,
38133,
38968,
39821,
40693,
41584,
42495,
43425,
44376,
45348,
46341,
47356,
48393,
49452,
50535,
51642,
52773,
53928,
55109,
56316,
57549,
58809,
60097,
61413,
62757,
64132,
65536,
66971,
68438,
69936,
71468,
73032,
74632,
76266,
77936,
79642,
81386,
83169,
84990,
86851,
88752,
90696,
92682,
94711,
96785,
98905,
101070,
103283,
105545,
107856,
110218,
112631,
115098,
117618,
120194,
122825,
125515,
128263,
131072,
133942,
136875,
139872,
142935,
146065,
149263,
152532,
155872,
159285,
162773,
166337,
169979,
173701,
177505,
181392,
185364,
189423,
193571,
197809,
202141,
206567,
211090,
215712,
220436,
225263,
230195,
235236,
240387,
245651,
251030,
256527,
262144,
267884,
273750,
279744,
285870,
292130,
298527,
305063,
311744,
318570,
325546,
332674,
339959,
347403,
355010,
362784,
370728,
378845,
387141,
395618,
404281,
413134,
422180,
431425,
440872,
450526,
460391,
470472,
480774,
491302,
502060,
513054,
524288,
535768,
547500,
559489,
571740,
584260,
597053,
610127,
623487,
637140,
651091,
665348,
679917,
694806,
710020,
725567,
741455,
757691,
774282,
791237,
808563,
826268,
844361,
862850,
881744,
901051,
920782,
940944,
961548,
982604,
1004120,
1026107,
1048576,
1071537,
1095000,
1118978,
1143480,
1168519,
1194106,
1220254,
1246974,
1274279,
1302182,
1330696,
1359835,
1389611,
1420040,
1451135,
1482910,
1515382,
1548564,
1582474,
1617125,
1652536,
1688722,
1725700,
1763488,
1802103,
1841564,
1881889,
1923097,
1965207,
2008240,
2052214,
2097152,
2143074,
2190001,
2237956,
2286960,
2337038,
2388213,
2440508,
2493948,
2548558,
2604365,
2661393,
2719670,
2779223,
2840080,
2902269,
2965821,
3030764,
3097129,
3164947,
3234251,
3305071,
3377443,
3451399,
3526975,
3604206,
3683128,
3763778,
3846194,
3930414,
4016479,
4104429,
};



uint32_t gc4c33_again_lut[] = {
	0x20,
	0x20,
	0x21,
	0x22,
	0x22,
	0x23,
	0x24,
	0x25,
	0x26,
	0x26,
	0x27,
	0x28,
	0x29,
	0x2a,
	0x2b,
	0x2c,
	0x2d,
	0x2e,
	0x2f,
	0x30,
	0x31,
	0x32,
	0x33,
	0x34,
	0x35,
	0x36,
	0x38,
	0x39,
	0x3a,
	0x3b,
	0x3d,
	0x3e,
	0x40,
	0x41,
	0x42,
	0x44,
	0x45,
	0x47,
	0x48,
	0x4a,
	0x4c,
	0x4d,
	0x4f,
	0x51,
	0x52,
	0x54,
	0x56,
	0x58,
	0x5a,
	0x5c,
	0x5e,
	0x60,
	0x62,
	0x64,
	0x67,
	0x69,
	0x6b,
	0x6d,
	0x70,
	0x72,
	0x75,
	0x77,
	0x7a,
	0x7d,
	0x80,
	0x82,
	0x85,
	0x88,
	0x8b,
	0x8e,
	0x91,
	0x94,
	0x98,
	0x9b,
	0x9e,
	0xa2,
	0xa5,
	0xa9,
	0xad,
	0xb1,
	0xb5,
	0xb8,
	0xbd,
	0xc1,
	0xc5,
	0xc9,
	0xce,
	0xd2,
	0xd7,
	0xdb,
	0xe0,
	0xe5,
	0xea,
	0xef,
	0xf5,
	0xfa,
	0x100,
	0x105,
	0x10b,
	0x111,
	0x117,
	0x11d,
	0x123,
	0x129,
	0x130,
	0x137,
	0x13d,
	0x144,
	0x14b,
	0x153,
	0x15a,
	0x162,
	0x16a,
	0x171,
	0x17a,
	0x182,
	0x18a,
	0x193,
	0x19c,
	0x1a5,
	0x1ae,
	0x1b7,
	0x1c1,
	0x1cb,
	0x1d5,
	0x1df,
	0x1ea,
	0x1f5
};

uint16_t gc4c33_init_2560X1440_linear_setting[] = {
	//window_size=2560*1440  mipi@2lane 12bit
	//mclk=27mhz,mipi_data_rate=627.5Mbps RGGB
	//pixel_line_total=2720,line_frame_total=1500
	//row_time=22.38us,frame_rate=30fps  
	0x03fe, 0xf0,
	0x03fe, 0xf0,
	0x03fe, 0xf0,
	0x03fe, 0xf0,
	0x03fe, 0x00,
	0x03fe, 0x00,
	0x03fe, 0x00,
	0x03fe, 0x00,
	0x031c, 0x01,
	0x0317, 0x24,
	0x0320, 0x77, 
	0x0106, 0x78,
	0x0324, 0x84, 
	0x0327, 0x05,
	0x0325, 0x08,
	0x0326, 0x2d,
	0x031a, 0x00, 
	0x0314, 0x30, 
	0x0315, 0x23,
	0x0334, 0x00, 
	0x0337, 0x02,
	0x0335, 0x02,
	0x0336, 0x1f,
	0x0324, 0xc4, 
	0x0334, 0x40,
	0x031c, 0x03,
	0x031c, 0xd2, 
	0x0180, 0x26, 
	0x031c, 0xd6,
	0x0287, 0x18, 
	0x02ee, 0x70, 
	0x0202, 0x05, 
	0x0203, 0xd0,
	0x0213, 0x1c, 
	0x0214, 0x04,
	0x0290, 0x00, 
	0x029d, 0x08, 
	0x0340, 0x05,
	0x0341, 0xdc, //frmae length
	0x0342, 0x01, 
	0x0343, 0xfe, //hb
	0x00f2, 0x04, 
	0x00f1, 0x0a, 
	0x00f0, 0xa0, 
	0x00c1, 0x05,
	0x00c2, 0xa0,
	0x00c3, 0x0a,
	0x00c4, 0x00,
	0x00da, 0x05,
	0x00db, 0xa0,//1444
	0x00d8, 0x0a,
	0x00d9, 0x00,//2564
	0x00c5, 0x0a, 
	0x00c6, 0xa0,
	0x00bf, 0x17, 
	0x00ce, 0x0a, 
	0x00cd, 0x01, 
	0x00cf, 0x89,
	0x023c, 0x06,
	0x02d1, 0xc2,
	0x027d, 0xcc,
	0x0238, 0xa4,
	0x02ce, 0x1f,
	0x02f9, 0x00,
	0x0227, 0x74, 
	0x0232, 0xc8,
	0x0245, 0xa8, 
	0x027d, 0xcc,
	0x02fa, 0xb0,
	0x02e7, 0x23, 
	0x02e8, 0x50,
	0x021d, 0x03,
	0x0220, 0x43, 
	0x0228, 0x10, 
	0x022c, 0x2c, 
	0x024b, 0x11,
	0x024e, 0x11, 
	0x024d, 0x11, 
	0x0255, 0x11, 
	0x025b, 0x11, 
	0x0262, 0x01, 
	0x02d4, 0x10, 
	0x0540, 0x10,
	0x0239, 0x00,
	0x0231, 0xc4, 
	0x024f, 0x11, 
	0x028c, 0x1a, 
	0x02d3, 0x01, 
	0x02da, 0x35, 
	0x02db, 0xd0, 
	0x02e6, 0x30, 
	0x0512, 0x00, 
	0x0513, 0x00, 
	0x0515, 0x20, 
	0x0518, 0x00, 
	0x0519, 0x00, 
	0x051d, 0x50,
	0x0211, 0x00, 
	0x0216, 0x00, 
	0x0221, 0x50, 
	0x0223, 0xcc, 
	0x0225, 0x07, 
	0x0229, 0x36, 
	0x022b, 0x0c, 
	0x022e, 0x0c, 
	0x0230, 0x03, 
	0x023a, 0x38, 
	0x027b, 0x3c, 
	0x027c, 0x0c, 
	0x0298, 0x13, 
	0x02a4, 0x07, 
	0x02ab, 0x00, 
	0x02ac, 0x00, 
	0x02ad, 0x07, 
	0x02af, 0x01, 
	0x02cd, 0x3c, 
	0x02d2, 0xe8, 
	0x02e4, 0x00, 
	0x0530, 0x04, 
	0x0531, 0x04, 
	0x0243, 0x36,
	0x0219, 0x07, 
	0x02e5, 0x28,
	0x0338, 0xaa,
	0x0339, 0xaa,
	0x033a, 0x02,
	0x023b, 0x20,
	0x0212, 0x48, 
	0x0523, 0x02, 
	0x0347, 0x06,
	0x0348, 0x0a,
	0x0349, 0x10, 
	0x034a, 0x05,
	0x034b, 0xb8, 
	0x034c, 0x0a,
	0x034d, 0x00, //2560
	0x034e, 0x05,
	0x034f, 0xa0, //1440
	0x0354, 0x01,
	0x0352, 0x00,
	0x0295, 0xff, 
	0x0296, 0xff, 
	0x02f0, 0x22, 
	0x02f1, 0x22, 
	0x02f2, 0xff, 
	0x02f4, 0x32, 
	0x02f5, 0x20, 
	0x02f6, 0x1c, 
	0x02f7, 0x1f, 
	0x02f8, 0x00, 
	0x0291, 0x04, 
	0x0292, 0x22, 
	0x0297, 0x22, 
	0x02d5, 0xfe, 
	0x02d6, 0xd0, 
	0x02d7, 0x35,
	0x0268, 0x3b,
	0x0269, 0x3b,
	0x0272, 0x80,
	0x0273, 0x80,
	0x0274, 0x80,
	0x0275, 0x80,
	0x0276, 0x80,
	0x0277, 0x80,
	0x0278, 0x80,
	0x0279, 0x80,
	0x0555, 0x50,
	0x0556, 0x23,
	0x0557, 0x50,
	0x0558, 0x23,
	0x0559, 0x50,
	0x055a, 0x23,
	0x055b, 0x50,
	0x055c, 0x23,
	0x055d, 0x50,
	0x055e, 0x23,
	0x0550, 0x28,
	0x0551, 0x28,
	0x0552, 0x28,
	0x0553, 0x28,
	0x0554, 0x28,
	0x0220, 0x43,
	0x021f, 0x03, 
	0x0233, 0x01, 
	0x0234, 0x80, 
	0x02be, 0x81,
	0x00a0, 0x5d,
	0x00c7, 0x94,
	0x00c8, 0x15,
	0x00df, 0x0a,
	0x00de, 0xfe,
	0x00aa, 0x3b,  
	0x00c0, 0x0a,
	0x031c, 0x80,
	0x031f, 0x10,
	0x031f, 0x00,
	0x031c, 0xd2,
	0x031c, 0xd2,
	0x031c, 0xd2,
	0x031c, 0xd2,
	0x031c, 0x80,
	0x031f, 0x10,
	0x031f, 0x00,
	0x031c, 0xd6,
	0x0053, 0x00, 
	0x008e, 0x55,
	0x0205, 0xc0, 
	0x02b0, 0xe0, 
	0x02b1, 0xe0, 
	0x02b3, 0x00,
	0x02b4, 0x00,
	0x02fc, 0x00,
	0x02fd, 0x00, 
	0x0263, 0x00,
	0x0267, 0x00,
	0x0450, 0x00,
	0x0451, 0xff,
	0x0452, 0xff,
	0x0453, 0x00,
	0x0454, 0x04,
	0x0455, 0x06,
	0x0456, 0x06,
	0x0457, 0x04,	
	0x0226, 0x30,
	0x0042, 0x20,
	0x0458, 0x01,
	0x0459, 0x01,
	0x045a, 0x01,
	0x045b, 0x01,
	0x044c, 0x80,
	0x044d, 0x80,
	0x044e, 0x80,
	0x044f, 0x80,
	0x0060, 0x40,
	0x00e1, 0x81, 
	0x00e2, 0x1c,
	0x00e4, 0x01,
	0x00e5, 0x01,
	0x00e6, 0x01, 
	0x00e7, 0x00,
	0x00e8, 0x00,
	0x00e9, 0x00, 
	0x00ea, 0xf0, 
	0x00ef, 0x04,
	0x00a1, 0x10,//0x10 dpc
	0x00a2, 0x10,//0x10
	0x00a7, 0x00,//0x22
	0x00a8, 0x20,//0x20
	0x00a9, 0x20,
	0x00b3, 0x00,
	0x00b4, 0x10,
	0x00b5, 0x20,
	0x00b6, 0x30,
	0x00b7, 0x40,
	0x00d1, 0x06,//re_masic
	0x00d2, 0x04,
	0x00d4, 0x02,
	0x00d5, 0x04,
	0x0089, 0x03,//
	0x008c, 0x10,
	0x0080, 0x06,
	0x0180, 0x66, //mipi
	0x0181, 0x30,
	0x0182, 0x55,
	0x0185, 0x01,
	0x0114, 0x01,
	0x0115, 0x12,
	0x0103, 0x00,
	0x0104, 0x20,
	0x0100, 0x09,

#if 1 //Sensor gain init
	0x31d, 0x2a,
    0x2fd, 0x00,
    0x2fc, 0x39,
    0x263, 0x00,
    0x267, 0x39,
    0x31d, 0x28,
    0x2b3, 0x00,
    0x2b4, 0x00,
    0x2b8, 0x01,
    0x2b9, 0x00,
    0x515, 0x20,   
    0x20e, 0x01,
    0x20f, 0x00
#endif 
};

uint16_t gc4c33_init_2560X1440_wdr_setting[] = {
	
	//window_size=2560*1440  mipi@2lane  10bit
	//mclk=24mhz,mipi_data_rate=630Mbps
	//pixel_line_total=2720,line_frame_total=1500
	//row_time=22.22us,frame_rate=30fps  
	0x03fe, 0xf0,
	0x03fe, 0xf0,
	0x03fe, 0xf0,
	0x03fe, 0xf0,
	0x03fe, 0x00,
	0x03fe, 0x00,
	0x03fe, 0x00,
	0x03fe, 0x00,
	0x031c, 0x01,
	0x0317, 0x24,
	0x0320, 0x77, 
	0x0106, 0x78,
	0x0324, 0x84, 
	0x0327, 0x05,
	0x0325, 0x08,
	0x0326, 0x33,
	0x031a, 0x00, 
	0x0314, 0x30, 
	0x0315, 0x23,
	0x0334, 0x00, 
	0x0337, 0x02,
	0x0335, 0x02,
	0x0336, 0x23,
	0x0324, 0xc4, 
	0x0334, 0x40,
	0x031c, 0x03,
	0x031c, 0xd2, 
	0x0180, 0x26, 
	0x031c, 0xd6,
	0x0287, 0x18, 
	0x02ee, 0x70, 
	0x0202, 0x05, 
	0x0203, 0xd0,
	0x0213, 0x1c, 
	0x0214, 0x04,
	0x0290, 0x00, 
	0x029d, 0x08, 
	0x0340, 0x05,
	0x0341, 0xdc, //frmae length
	0x0342, 0x01, 
	0x0343, 0xfe, //hb
	0x00f2, 0x04, 
	0x00f1, 0x0a, 
	0x00f0, 0xa0, 
	0x00c1, 0x05,
	0x00c2, 0xa0,
	0x00c3, 0x0a,
	0x00c4, 0x00,
				
	0x00da, 0x05,
	0x00db, 0xa0,//1440
	0x00d8, 0x0a,
	0x00d9, 0x00,//2560
			   
	0x00c5, 0x0a, 
	0x00c6, 0xa0,
	0x00bf, 0x17, 
	0x00ce, 0x0a, 
	0x00cd, 0x01, 
	0x00cf, 0x89,
	0x023c, 0x06,
	0x02d1, 0xc2,
	0x027d, 0xcc,
	0x0238, 0xa4,
	0x02ce, 0x1f,
	0x02f9, 0x00,
	0x0227, 0x74, 
	0x0232, 0xc8,
	0x0245, 0xa8, 
	0x027d, 0xcc,
	0x02fa, 0xb0,
	0x02e7, 0x23, 
	0x02e8, 0x50,
	0x021d, 0x03,
	0x0220, 0x43, 
	0x0228, 0x10, 
	0x022c, 0x2c, 
	0x024b, 0x11,
	0x024e, 0x11, 
	0x024d, 0x11, 
	0x0255, 0x11, 
	0x025b, 0x11, 
	0x0262, 0x01, 
	0x02d4, 0x10, 
	0x0540, 0x10,
	0x0239, 0x00,
	0x0231, 0xc4, 
	0x024f, 0x11, 
	0x028c, 0x1a, 
	0x02d3, 0x01, 
	0x02da, 0x35, 
	0x02db, 0xd0, 
	0x02e6, 0x30, 
	0x0512, 0x00, 
	0x0513, 0x00, 
	0x0515, 0x20, 
	0x0518, 0x00, 
	0x0519, 0x00, 
	0x051d, 0x50,
	0x0211, 0x00, 
	0x0216, 0x00, 
	0x0221, 0x50, 
	0x0223, 0xcc, 
	0x0225, 0x07, 
	0x0229, 0x36, 
	0x022b, 0x0c, 
	0x022e, 0x0c, 
	0x0230, 0x03, 
	0x023a, 0x38, 
	0x027b, 0x3c, 
	0x027c, 0x0c, 
	0x0298, 0x13,
	0x02a4, 0x07,
	0x02ab, 0x00,
	0x02ac, 0x00,
	0x02ad, 0x07,
	0x02af, 0x01,
	0x02cd, 0x3c,
	0x02d2, 0xe8,
	0x02e4, 0x00,
	0x0530, 0x04,
	0x0531, 0x04,
	0x0243, 0x36,
	0x0219, 0x07,
	0x02e5, 0x28,
	0x0338, 0xaa,
	0x0339, 0xaa,
	0x033a, 0x02,
	0x023b, 0x20,
	0x0212, 0x48,
	0x0523, 0x02,
	0x0347, 0x06,
				
	0x0348, 0x0a,
	0x0349, 0x10,
	0x034a, 0x05,
	0x034b, 0xb0,
				
	0x0097, 0x0a,
	0x0098, 0x10,
	0x0099, 0x05,
	0x009a, 0xb0,
				
	0x034c, 0x0a,
	0x034d, 0x00, //2560
	0x034e, 0x05,
	0x034f, 0xa0, //1440
				
	0x0354, 0x00,
	0x0352, 0x00,
				
	0x0295, 0xff, 
	0x0296, 0xff, 
	0x02f0, 0x22, 
	0x02f1, 0x22, 
	0x02f2, 0xff, 
	0x02f4, 0x32, 
	0x02f5, 0x20, 
	0x02f6, 0x1c, 
	0x02f7, 0x1f, 
	0x02f8, 0x00, 
	0x0291, 0x04, 
	0x0292, 0x22, 
	0x0297, 0x22, 
	0x02d5, 0xfe, 
	0x02d6, 0xd0, 
	0x02d7, 0x35,
	0x0268, 0x3b,
	0x0269, 0x3b,
	0x0272, 0x80,
	0x0273, 0x80,
	0x0274, 0x80,
	0x0275, 0x80,
	0x0276, 0x80,
	0x0277, 0x80,
	0x0278, 0x80,
	0x0279, 0x80,
	0x0555, 0x50,
	0x0556, 0x23,
	0x0557, 0x50,
	0x0558, 0x23,
	0x0559, 0x50,
	0x055a, 0x23,
	0x055b, 0x50,
	0x055c, 0x23,
	0x055d, 0x50,
	0x055e, 0x23,
	0x0550, 0x28,
	0x0551, 0x28,
	0x0552, 0x28,
	0x0553, 0x28,
	0x0554, 0x28,
	0x0220, 0x43,
	0x021f, 0x03, 
	0x0233, 0x01, 
	0x0234, 0x80, 
	0x02be, 0x81,
	0x00a0, 0x5d,
	0x00c7, 0x94,
	0x00c8, 0x15,
	0x00df, 0x0a,
	0x00de, 0xfe,
	0x00aa, 0x3a,  
	0x00c0, 0x0a,
	0x031c, 0x80,
	0x031f, 0x10,
	0x031f, 0x00,
	0x031c, 0xd2,
	0x031c, 0xd2,
	0x031c, 0xd2,
	0x031c, 0xd2,
	0x031c, 0x80,
	0x031f, 0x10,
	0x031f, 0x00,
	0x031c, 0xd6,
	0x0053, 0x00, 
	0x008e, 0x55,
	0x0205, 0xc0, 
	0x02b0, 0xe0, 
	0x02b1, 0xe0, 
	0x02b3, 0x00,
	0x02b4, 0x00,
	0x02fc, 0x00,
	0x02fd, 0x00, 
	0x0263, 0x00,
	0x0267, 0x00,
				
	0x0451, 0xff,//rgain 7ff=2047
	0x0455, 0x07,
	0x0452, 0xf2,//bgain 6f2=1778
	0x0456, 0x06,
	0x0450, 0xbd,//g 3bd=957
	0x0454, 0x03,
	0x0453, 0xbd,
	0x0457, 0x03,
				
	0x0226, 0x30,
	0x0042, 0x20,
	0x0458, 0x01,
	0x0459, 0x01,
	0x045a, 0x01,
	0x045b, 0x01,
	0x044c, 0x80,
	0x044d, 0x80,
	0x044e, 0x80,
	0x044f, 0x80,
	0x0060, 0x40,
	0x00e1, 0x81, 
	0x00e2, 0x1c,
	0x00e4, 0x01,
	0x00e5, 0x01,
	0x00e6, 0x01, 
	0x00e7, 0x00,
	0x00e8, 0x00,
	0x00e9, 0x00, 
	0x00ea, 0xf0, 
	0x00ef, 0x04,
	0x00a1, 0x05,//0x10 dpc
	0x00a2, 0x05,//0x10
	0x00a7, 0x00,//0x22
	0x00a8, 0x20,//0x20
	0x00a9, 0x20,
	0x00b3, 0x00,
	0x00b4, 0x10,
	0x00b5, 0x20,
	0x00b6, 0x30,
	0x00b7, 0x40,
	0x00d1, 0x06,//re_masic
	0x00d2, 0x04,
	0x00d4, 0x02,
	0x00d5, 0x04,
	0x0089, 0x03,//
	0x008c, 0x10,
	0x0080, 0x06,
	0x0180, 0x66, //mipi
	0x0181, 0x30,
	0x0182, 0x55,
	0x0185, 0x01,
	0x0114, 0x01,
	0x0115, 0x12,
	0x0103, 0x00,
	0x0104, 0x20,
	0x0100, 0x09,
				
				
};

uint32_t gc4c33_stream_on_setting[] = {

	0x0100,	0x09,
};

uint32_t gc4c33_stream_off_setting[] = {

	0x0100,	0x00,
};

#endif  // UTILITY_SENSOR_INC_GC4C33_SETTING_H_
